package com.itmk.web.room.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author java实战基地
 * @since 2023-10-11
 */
@Getter
@Setter
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "room_id", type = IdType.AUTO)
    private Integer roomId;

    /**
     * 类型id
     */
    private Integer categoryId;

    /**
     * 楼层id
     */
    private Integer floorId;

    /**
     * 阅览室名称
     */
    private String roomName;

    @TableField(exist = false)
    private String categoryName;
     @TableField(exist = false)
    private String floorName;

    /**
     * 图片
     */
    private String image;

    /**
     * 行数
     */
    private Integer numX;

    /**
     * 列表
     */
    private Integer numY;

    /**
     * 区域
     */
    private String area;

    /**
     * 序号
     */
    private Integer orderNum;

    //开门时间
    private LocalTime beginTime;

    //关门时间
    private LocalTime endTime;
    @TableField(exist = false)
    private Integer hasTotal;

}
